<%--
  Created by IntelliJ IDEA.
  User: hellcat
  Date: 2020/3/18
  Time: 15:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@include file="extra/body.jsp" %>
<script src="../static/js/extra/echarts.js"></script>
<%--start--%>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">报损报表</div>
                <div class="layui-card-body">
                    <div class="layui-form">
                        <div class="layui-form-item">
                            <label class="layui-form-label">查询时间</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" style="width: 300px"
                                       id="damageReportDate" readonly="readonly">
                            </div>
                            <div class="layui-btn-group layui-input-block">
                                <button type="button" class="layui-btn layui-btn-primary dateChoose"
                                        lay-event="today">今天
                                </button>
                                <button type="button" class="layui-btn layui-btn-primary dateChoose"
                                        lay-event="yesterday">昨天
                                </button>
                                <button type="button" class="layui-btn layui-btn-primary dateChoose"
                                        lay-event="lastWeek">近一周
                                </button>
                                <button type="button" class="layui-btn layui-btn-primary dateChoose"
                                        lay-event="lastMonth">近一月
                                </button>
                                <button type="button" class="layui-btn layui-btn-primary dateChoose"
                                        lay-event="lastYear">近一年
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-col-md6">
            <div class="layui-card">
                <div class="layui-card-header">报损单数</div>
                <div class="layui-card-body">
                    <span id="damageReportCard1" style="color: #1E9FFF;font-size: 20px">
                        0单
                    </span>
                </div>
            </div>
        </div>
        <div class="layui-col-md6">
            <div class="layui-card">
                <div class="layui-card-header">报损金额</div>
                <div class="layui-card-body">
                    <span id="damageReportCard2" style="color: #1E9FFF;font-size: 20px">
                        ￥0.00
                    </span>
                </div>
            </div>
        </div>
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">报损分类占比</div>
                <div class="layui-card-body">
                    <div id="damageReportPieECharts" style="width: 100%;height:300px;"></div>
                </div>
            </div>
        </div>
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">商品统计</div>
                <div class="layui-card-body">
                    <div class="layui-form-item">
                        <div class="layui-input-inline">
                            <input id="damageReportSearchByWaresId" class="layui-input" type="text" autocomplete="off"
                                   placeholder="按商品编码/名称查询">
                        </div>
                        <button type="button" class="layui-btn layui-btn-normal"
                                id="damageReportSearchBtn">查询
                        </button>
                    </div>
                    <table class="layui-table" id="damageReportTable"
                           lay-filter="damageReportTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<%--end--%>
</div>
</div>

<script src="../static/js/damageReport.js"></script>
<%@include file="extra/footer.jsp" %>
